//
//  YXTopView.h
//  YXImageBrowserDemo
//
//  Created by guo peng huang on 2021/5/18.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, YXTopViewOperationType) {
    YXTopViewOperationTypeSave,   //保存
    YXTopViewOperationTypeMore    //更多
};

@interface YXTopView : UIView

/// 页码标签
@property (nonatomic, strong, readonly) UILabel *pageLabel;

/// 操作按钮（自定义：直接修改图片或文字，然后添加点击事件）
@property (nonatomic, strong, readonly) UIButton *operationButton;

/// 按钮类型
@property (nonatomic, assign) YXTopViewOperationType operationType;

/**
 设置页码

 @param page 当前页码
 @param totalPage 总页码数
 */
- (void)setPage:(NSInteger)page totalPage:(NSInteger)totalPage;

/// 点击操作按钮的回调
@property (nonatomic, copy) void(^clickOperation)(YXTopViewOperationType type);

+ (CGFloat)defaultHeight;

@end

NS_ASSUME_NONNULL_END
